import request from '../utils/request';

// 登录方法
export function login(username, password, code, uuid) {
  const data = {
    username,
    password,
    code,
    uuid
  }
  return request({
    url: '/login',
    headers: {
      isToken: false,
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

export function getCaptcha() {
  return request({
    url: '/captchaImage',
    method: 'get'
  });
}

export function getUserInfo() {
  return request({
    url: '/user/profile',
    method: 'get'
  });
}
